package com.xbongbong.saas.constant;

/**
 * 增加项目基本的常量类
 * @author 章华隽
 * @mail nefeed@163.com
 * @time 2017-10-31 15:07
 */
public class BasicConstant {
    /**
     * 当前是否为开发调试阶段
     */
    public static final boolean DEBUG = false;
    /**
     * 定时任务的API校验密码
     */
    public static final String TASK_SECRET_KEY = "gYYt9diVPkQrdgeNMkUk";

    /**
     * 免费用户最后创建公司的时间20170801
     */
    public static final Integer DATE20170801 = 1501516800;

    /**
     * 基本信息
     */
    public static final String BASIC_INFO = "基本信息";

    /**
     * 归档
     */
    public static final String ARCHIVE = "归档";



    /**
     * “客户”模块的标识
     *
     * @author zheng.li
     * @PS 目前有些地方为”customerApi”，以后要统一为“customer”
     */
    public static final String CUSTOMER = "customer";
    /**
     * “合同”模块的标识
     *
     * @author zheng.li
     * @PS 目前有些地方为”contractApi”，以后要统一为“contract”
     */
    public static final String CONTRACT = "contract";
    /**
     * "回款"模块的标识
     *
     * @author zheng.li
     * @PS 目前有些地方为”paymentApi”，以后要统一为“payment”
     */
    public static final String PAYMENT = "payment";

    public static final String PAYMENTSHEET = "paymentSheet";
    /**
     * excel导入的最大行数
     */
    public static final Integer MAX_EXCEL_IMPORT_COUNT = 1000;

    /**
     * 公司实际使用人数大于该值的 pk榜暂不处理
     */
    public static final Integer MAX_REAL_USER_NUM = 2000;
    /**
     * 公司实际部门数大于该值的 pk榜暂不处理
     */
    public static final Integer MAX_REAL_DEP_NUM = 300;

    /**
     * 最大用户数
     */
    public static final Integer MAX_USER_COUNT = 5000;

    /**
     * 批量删除最大数量
     */
    public static final Integer MAX_DEL_BATCH_COUNT = 50;

    /**
     * 是否启用
     * 0未启用，1启用
     */
    public static final Integer IS_USE = 1;
    public static final Integer NO_USE = 0;

    /**
     * 关联产品备注字段最大长度
     */
    public static final Integer PRODUCT_MEMO_MAX_LENGTH = 2000;

    /**
     * 购物车失效时间默认 3个月（2592000秒）
     */
    public static final int CART_EXPIRES_TIME = 2592000;

    /**
     * 0D
     */
    public static final Double ZERO_DOUBLE = 0.0D;

    /**
     * 月份最小值
     */
    public static final Integer MIN_MONTH = 1;
    /**
     * 月份最大值
     */
    public static final Integer MAX_MONTH = 12;
    /**
     * 季度最小值
     */
    public static final Integer MIN_SEASON = 1;
    /**
     * 季度最大值
     */
    public static final Integer MAX_SEASON = 4;
    /**
     * 周均
     */
    public static final Integer AVERAGE_WEEK = 5;
    /**
     * 月均
     */
    public static final Integer AVERAGE_MONTH = 22;
    /**
     * 季均
     */
    public static final Integer AVERAGE_SEASON = 22 * 3;
    /**
     * 年均
     */
    public static final Integer AVERAGE_YEAR = 22 * 12;

    /**
     * 0
     */
    public static final Integer ZERO = 0;
    public static final Integer TEN = 10;
    /**
     * 1
     */
    public static final Integer ONE = 1;
    /**
     * 1
     */
    public static final Integer TWO = 2;

    public static final Integer THREE = 3;
    public static final Integer THREE_HUNDRED = 300;

    public static final Integer FOUR = 4;

    public static final Integer FIVE = 5;

    public static final Integer SIX = 6;

    public static final Integer SEVEN = 7;
    public static final Integer NINE = 9;

    public static final Integer TWENTY = 20;
    public static final Integer TWENTY_THREE = 23;
    public static final Integer TWENTY_EIGHT = 28;
    public static final Integer TWO_HUNDRED = 200;

    /**
     * 0
     */
    public static final Long ZERO_LONG = 0L;
    /**
     * "0"
     */
    public static final String ZERO_STRING = "0";
    /**
     * "1"
     */
    public static final String ONE_STRING = "1";
    /**
     * 默认精度
     */
    public static final Integer DEFAULT_ACCURACY = 4;
    /**
     * 默认版本
     */
    public static final Integer IS_DEFAULT = 1;
    /**
     * 默认产品头像
     */
    public static final String DEFAULT_PRODUCT_IMG = "/images/defaultpro.png";
    /**
     * 主负责人
     */
    public static final Integer MAIN_USER = 1;
    /**
     * 协同人
     */
    public static final Integer COOP_USER = 0;
    /**
     * 百分百
     */
    public static final Double HUNDRED_PERCENT = 100D;

    /**
     * 编号字段
     */
    public static final String SERIAL_NO = "serialNo";

    /**
     * 摘要
     */
    public static final String SUMMARY_LIST = "summaryList";
    /**
     * 标签
     */
    public static final String LABELS_LIST = "labelsList";
    /**
     * 标题
     */
    public static final String TITLE_LIST = "titleList";

    /**
     * 暂时给列表的--
     */
    public static final String NULL_SHOW_STR ="--";

    /**
     * 获取抄送人的key
     */
    public static final String USERS = "users";

    /**
     * 获取抄送人字符串的key
     */
    public static final String USERS_STR = "usersStr";

    /**
     * 获取批阅人的key
     */
    public static final String APPROVED_PEOPLE = "approvedPeople";

    /**
     * 获取批阅人的key
     */
    public static final String APPROVED_PEOPLE_STR = "approvedPeopleStr";

    /**
     * 日报发送人所属部门
     */
    public static final String EFFECTIVE_DEPS = "effectiveDeps";

    /**
     * 日报发送人所属部门
     */
    public static final String EFFECTIVE_DEPS_STR = "effectiveDepsStr";
    /**
     * 排序
     */
    public static final String SORT = "sort";

    /**
     * 手机号字段
     */
    public static final String TEXT_2 = "text_2";

    /**
     * 版本
     */
    public static final Double EDTATION = 1.0;

    /**
     * data
     */
    public static final String DATA = "data";
    /**
     * dataId
     */
    public static final String DATAID = "dataId";

    /**
     * id
     */
    public static final String ID = "id";

    /**
     * userId
     */
    public static final String USERID = "userId";
    /**
     * property
     */
    public static final String PROPERTY = "property";
    /**
     * user
     */
    public static final String USER = "user";
    /**
     * dept
     */
    public static final String DEPT = "dept";
    /**
     * role
     */
    public static final String ROLE = "role";
    /**
     * dynamicManager
     */
    public static final String DYNAMICMANAGER = "manager";
    /**
     * idIn
     */
    public static final String IDIN ="idIn";
    /**
     * name
     */
    public static final String NAME = "name";
    /**
     * 逗号
     */
    public static final String COMMA =",";

    /**
     * 关联合同id
     */
    public static final String REFCONTRACTID = "refContractId";

    public static final String UUID = "uuid";

    public static final String ALONE = "alone";

    public static final String ALONE_IN = "aloneIn";

    public static final String VALUE = "value";

    public static final Boolean OLD_JXC = false;

    public static final String TYPE = "type";

    public static final String HASRECEIVABLES = "hasReceivables";

    public static final String WARNING_MSG = "warningMsg";

    public static final String OFF_LINED_PRODUCTS = "offlinedProducts";

    public static final Integer SERIAL_LENGTH_NUMBER = 50;

    public static final String RATE = "rate";

    public static final Integer LABEL_GROUP_SIZE = 20;

    /**
     * 自定义pk榜查询最大条数
     */
    public static final Integer CUSTOM_PK_SIZE = 500;

    public static final String BUSINESS_TYPE = "businessType";

    public static final Long ONE_LONG = 1L;
    /**
     * -1L
     */
    public static final Long ONE_LONG_MINUS = -1L;

    public static final Long TWO_LONG = 2L;

    public static final Integer COUPON_MAX_COUNT = 100;

    public static final Integer PROMOTION_MAX_COUNT = 50;

    /**
     * 营销活动备注字段最大长度
     */
    public static final Integer MARKETING_MAX_LENGTH = 2000;

    public static final Integer FORTY = 40;

    /**
     * 出库产生应收时，对其它费用的暂存：插入对账流水时，是用(出库产生的)应收款生成，而应收款本身无其它费用字段，需要把该应收对应出库单的其它费用暂存
     */
    public static final String STATEMENT_OTHER_EXPENSE = "statementOtherExpense";

    /**
     * 出库产生应收时，对产品信息的暂存：插入对账流水时，是用(出库产生的)应收款生成，而应收款本身无产品字段，需要把该应收对应出库单的产品信息暂存
     */
    public static final String STATEMENT_PRODUCT = "statementProduct";

    public static final String NO_LIMIT = "noLimit";

    public static final String AMOUNT = "amount";

    public static final Integer CC_CARD = 200;
    /**
     * 每日结账数量限制
     */
    public static final Integer SETTLE_ACCOUNTS_NUM = 5;

    /**
     * 最长反结账日期限制
     */
    public static final Integer LIMIT_ANTI_SETTLEMENT_DATE = 6;

    /**
     * 产品成本计算新方案上线时间
     */
    public static final Long PRODUCT_COST_OPTIMIZE_DATE = 1642708800L;

    /**
     * 产品成本计算上线默认结账时间(2021-07-21 00:00:00)
     */
    public static final Long PRODUCT_COST_OPTIMIZE_DEFAULT_DATE = 1626796800L;

    /**
     * 进销存5.0上线时间 2022-07-21 23:30:00
     */
    public static final Long JXC_ONLINE_DATE = 1658417400L;

    /**
     * 知识库-知识条目上限
     */
    public static final int KNOWLEDGE_DATA_HC = 999;
    /**
     * 知识库-建议回复字数上线
     */
    public static final int KNOWLEDGE_CONTENT_HC = 1000;
    /**
     * 知识库-关键词/标签/拓展问法个数上限
     */
    public static final int KNOWLEDGE_KEYWORD_HC = 10;
    /**
     * 知识库-关键词字数上限
     */
    public static final int KNOWLEDGE_KEYWORD_NUMBER_HC = 10;
    /**
     * 知识库-标题/拓展问法字数上限
     */
    public static final int KNOWLEDGE_TITLE_HC = 100;
    /**
     * 知识库目录上限
     */
    public static final int KNOWLEDGE_CATALOGUE_HC = 100;
    /**
     * 知识库-附件上限
     */
    public static final int KNOWLEDGE_FILE_HC = 1;

    /**
     * 灰度标识
     */
    public static final Integer GRAY_FLAG = 1;

    /**
     * 可用库存量关联合同上限
     */
    public static final int CONTRACT_HC = 300;

    /**
     * 富文本最大字符限制
     */
    public static final Integer RICH_TEXT_MAX_CHAR_LIMIT = 32768;

    /**
     * 工单模版最大数量
     */
    public static final Integer WORK_ORDER_V2_TEMPLATE_NUM = 50;

    /**
     * 图片最大限制
     */
    public static final Integer IMAGE_MAX_SIZE_LIMIT = 30;

    /**
     * 普通用户附件最大限制
     */
    public static final Integer UPLOAD_MAX_SIZE_LIMIT = 50;

    /**
     * OSS断点续传白名单客户附件最大限制
     */
    public static final Integer WHITE_UPLOAD_MAX_SIZE_LIMIT = 200;

}
